/**
 * @type 基础路由
 */

import { RouteRecordRaw } from "vue-router"
const routerMap:RouteRecordRaw[] = [
    {
        path: '/login',
        name: 'Login',
        component: () => import('../views/Login.vue')
    },
    {
        path:"/",
        name:"home",
        component: () => import("@/views/home/index.vue"),
        children: [
            {
                path: "",
                name: "amin_home",
                component: () => import("@/views/home/home.vue"),
                meta: {
                    KeepAlive: false
                }
            },
            {
                path: "swiper",
                name: "amin_swiper",
                component: () => import("@/views/swiper/index.vue"),
                meta: {
                    KeepAlive: false
                }
            },
            {
                path: "list",
                name: "amin_list",
                component: () => import("@/views/list/index.vue"),
                meta: {
                    KeepAlive: false
                }
            },
            {
                path: 'tagList',
                name: "amin_tagList",
                component: () => import("@/views/list/tagList.vue"),
                meta: {
                    KeepAlive: false
                }
            },
            {
                path: "publish",
                name: "admin_publish",
                component: () => import("@/views/list/publish.vue"),
                meta: {
                    KeepAlive: true
                }
            },
            {
                path: "add_user",
                name: "admin_add_user",
                component: () => import("@/views/user/index.vue"),
                meta: {
                    KeepAlive: false
                }
            },
            {
                path: "link_user",
                name: "admin_link_user",
                component: () => import("@/views/user/link.vue"),
                meta: {
                    KeepAlive: false
                }
            },
            {
                path: "production",
                name: "admin_production",
                component: () => import("@/views/production/index.vue"),
                meta: {
                    KeepAlive: false
                }
            },
            {
                path: "apply",
                name: "admin_apply",
                component: () => import("@/views/apply/index.vue"),
                meta: {
                    KeepAlive: false
                }
            },
            {
                path: "cooperate",
                name: "admin_cooperate",
                component: () => import("@/views/cooperate/index.vue"),
                meta: {
                    KeepAlive: false
                }
            },
            {
                path: "cooperate",
                name: "admin_cooperate",
                component: () => import("@/views/cooperate/index.vue"),
                meta: {
                    KeepAlive: true
                }
            },
            {
                path: "website",
                name: "admin_website",
                component: () => import("@/views/setting/website.vue"),
                meta: {
                    KeepAlive: false
                }
            },
            {
                path: "system",
                name: "admin_system",
                component: () => import("@/views/setting/system.vue"),
                meta: {
                    KeepAlive: false
                }
            },
            {
                path: "/projectList",
                name: "admin_projectList",
                component: () => import("@/views/project/list.vue"),
                meta: {
                    KeepAlive: false
                }
            },
            {
                path: "/projectAdmin",
                name: "admin_projectAdmin",
                component: () => import("@/views/project/admin.vue"),
                meta: {
                    KeepAlive: false
                }
            }
        ]
    },
    {
        path: "/:catchAll(.*)",
        component: () => import("@/views/404.vue"),
        meta: {
            KeepAlive: false
        }
    }
]


export default routerMap